package com.crk.shixiguanli.service;

import com.crk.shixiguanli.entity.*;
import com.crk.shixiguanli.util.Page;
import com.crk.shixiguanli.util.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Set;

/**
 * Description:
 *
 * @author:
 * Date: 2020-04-02
 * Time: 15:59
 */
public interface StudentService {

    public ResponseResult upload(MultipartFile file);


    public ResponseResult batchSaveCollege(Set<String> collegeSet);


    public ResponseResult batchSaveProfessional(List<Professional> professionalList);

    /**
     * 查询学生列表-分页
     * @param studentName 学生名称
     * @param college 学院名称
     * @param professional 专业名称
     * @param pageInfo 分页信息
     * @return
     */
    public ResponseResult queryStudentPage(String studentName,String college
            ,String professional,Page pageInfo);


    public ResponseResult getStaticByAge();

    public ResponseResult getStaticByProvince();

    public ResponseResult getStaticByGender();

    public ResponseResult getStaticByNation();


    public User getStudentUserByIdCard(String idCard);


    public ResponseResult saveStudentBaseInfo(StudentDto studentDto);



    public ResponseResult confirmStudentInfo();

    /**
     * 保存数据
     * @param student
     * @return
     */
    public ResponseResult saveStudent(Student student);

    public ResponseResult getStudent(int id);

    public ResponseResult deleteStudent(int id);
}
